package com.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.entity.UserP;
import com.service.UserPService;

@Controller
@RequestMapping("/upc")
public class UserPController {

	@Autowired
	UserPService ups;

	@RequestMapping("login")
	public String login(UserP up) {
		up = ups.login(up);
		if (up != null) {
			return "redirect:/srcon/list";
		} else {
			return "";
		}

	}
}
